package demo1;
public class Test {

    public static void main(String[] args) {
        Student student1 = new Student();
        System.out.println("===============");
        Student student2 = new Student();
        System.out.println(Student.classRoom);
    }

    public static void main5(String[] args) {
        Student student1 = new Student("悟空", 100);
        System.out.println(student1.name);
        System.out.println(student1.age);
    }

    public static void main4(String[] args) {
        Student student1 = new Student();
        System.out.println(student1.name);
        System.out.println(student1.age);
        System.out.println("============");

        Student student2 = new Student();
        System.out.println(student2.name);
        System.out.println(student2.age);
    }

    public static void main3(String[] args) {
        {
            int a = 10;
            System.out.println(a);
        }

        int a = 100;
        System.out.println(a);
    }

    public static void main2(String[] args) {
        Student.classRoom = "117Java";
        System.out.println(Student.classRoom);
        System.out.println(Student.getClassRoom());
    }

    public static void main1(String[] args) {
        Student student = new Student();
        student.name = "zhangsan";
        student.age = 17;
        // student.classRoom = "117Java";
        Student.classRoom = "117Java";

        Student student1 = new Student();
        student1.name = "lisi";
        student1.age = 18;
        // student1.classRoom = "117Java";

        System.out.println(Student.classRoom);
    }

}
